package com.jsj.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class TopicSubmissionVo {
    /**
     * 提交作业id
     */
    private int id;

    /**
     * 提交学生用户名
     */
    private String userName;

    /**
     * 提交学生
     */
    private String nickName;

    /**
     * 提交时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;

    public TopicSubmissionVo() {
    }

    public TopicSubmissionVo(int id, String userName, String nickName, Date createTime) {
        this.id = id;
        this.userName = userName;
        this.nickName = nickName;
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "TopicSubmissionVo{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
